package com.saunter.extendMapper;

import com.saunter.extendModel.SalaryExtend;
import com.saunter.mapper.SalaryMapper;
import com.saunter.model.Salary;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.util.List;
import java.util.Map;

public interface SalaryExtendMapper extends SalaryMapper {
    List<SalaryExtend> getAll(Map<String, Object> filter);
    List<Salary> getByIdNumAndDate(@Param("user_id_num")String user_id_num, @Param("salary_date")Date salary_date);
    int deleteByUserIdNum(String user_id_num);
    int deleteByIds(List<String> ids);
    List<String> getIdNumByIdNumAndDate(@Param("user_id_num")List<String> user_id_nums, @Param("salary_date")Date salary_date);
    int insertByMap(@Param("data")Map<String, String[]> data, @Param("date")Date salary_date);
}
